package java_DesignPattern.CreatorPattern.BuilderPattern.Method2;

/**
 * 使用建造者模式构建对象
 */
public class Test {

    public static void main(String[] args) {

        Phone phone = new Phone.Create()
                .cpu("A17")
                .memory("12GB")
                .screen("三星")
                .build();

        System.out.println(phone.toString());
    }
}
